from random import randint, random
from typing import *


class Solution:
    def minNumberOperations(self, target: List[int]) -> int:
        ans = target[0]
        for i in range(1, len(target)):
            ans += max(target[i] - target[i - 1], 0)
        return ans


from random import randint

a = []
for i in range(100):
    a.append(randint(1, 10000))
print(a, file=open("1.txt", "w"))
